@charset "UTF-8";

/**
 * @desc tip组件样式
 * @author huang
 * @date 2021年11月18日
 */

.tips {
  display: none;
  position: fixed;
  left: 50%;
  top: -100px;
  transform: translateX(50%);
  padding: 0 20px 0 10px;
  line-height: 40px;
  border-radius: 5px;
  background-color: darkseagreen;
  color: white;
}

@keyframes show {
  from {
    transform: translate(0);
    opacity: 0;
  }

  to {
    transform: translate(0, 150px);
    opacity: 1;
  }
}

@keyframes hide {
  from {
    transform: translate(0, 150px);
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate(0);
  }
}
